package com.example.cloudalibaba.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.springcloud.entity.CommonResult;
import org.springframework.stereotype.Component;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
// @Component
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException e) {
        return new CommonResult(444, "按客户自定义, global handlerException-----1");
    }

    public static CommonResult handlerException2(BlockException e) {
        return new CommonResult(444, "按客户自定义, global handlerException-----2");
    }
}
